package anim;

import vis.Viewport;

public class SetSweep extends Frame {

	private Viewport vport = null;
	double nx = 0, ox = 0;
	
	public SetSweep(Viewport vp, double x)
	{
		vport = vp;
		nx = x;
	}
	
	@Override
	public void doFrame() {
		ox = vport.getSweepX();
		vport.setSweepX(nx);
	}

	@Override
	public void undoFrame() {
		vport.setSweepX(ox);
	}

}
